rolesystem.roles.auction
Class Price

java.lang.Object
  extended by rolesystem.roles.auction.Price
All Implemented Interfaces:
java.io.Serializable

public class Price
extends java.lang.Object
implements java.io.Serializable

This class represents a price. Instances of this class are constant, once created they cannot be changed.

See Also:
Serialized Form

Constructor Summary
Price(double amount, java.lang.String currency)
           
 
Method Summary
 double getAmount()
          Returns the amount.
 java.lang.String getCurrency()
          Returns the currency.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Price

public Price(double amount,
             java.lang.String currency)
Parameters:
amount - Amount.
currency - Currency.
Method Detail

getAmount

public double getAmount()
Returns the amount.

Returns:
The amount.

getCurrency

public java.lang.String getCurrency()
Returns the currency.

Returns:
The currency.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object